{load header}
<!--/H-->

    <!-- 内容区 -->
    <div id="main-content">
        <div id="top-alert" class="fixed alert alert-error" style="display: none;">
            <button class="close fixed" style="margin-top: 4px;">&times;</button>
            <div class="alert-content">这是内容</div>
        </div>
        <div id="main" class="main">
        <!-- nav --><!-- nav -->
            
	<div class="main-title cf">
		<h2>平台信息修改</h2>
	</div>
	<div class="tab-wrap">
            <ul class="tab-nav nav">
                <li data-tab="tab1" class="current"><a href="javascript:void(0);">基本信息</a></li>
                <li data-tab="tab2"><a href="javascript:void(0);">利息相关</a></li>
                <li data-tab="tab3"><a href="javascript:void(0);">额度相关</a></li>
                <li data-tab="tab4"><a href="javascript:void(0);">期限相关</a></li>
                <li data-tab="tab5" ><a href="javascript:void(0);">图片相关</a></li>
            </ul>
            <div class="tab-content">
            <form action="" method="post" class="form-horizontal">
                <div id="tab1" class="tab-pane in tab1">
                    <div class="form-item cf">
                        <label class="item-label">总推广人数<span class="check-tips">（前台显示）</span></label>
                        <div class="controls">
                            <input type="text" class="text input-small" name="total_person" value="{$item['total_person']}">（人）
                        </div>
                    </div>
                    <div class="form-item cf">
                        <label class="item-label">总推广金额<span class="check-tips">（前台显示）</span></label>
                        <div class="controls">
                                <input type="text" class="text input-small" name="total_amount" value="{$item['total_amount']}">（元）
                        </div>
                    </div>
                </div>
                <div id="tab2" class="tab-pane tab2">
                     <div class="form-item cf">
                        <label class="item-label">平台平均收益率<span class="check-tips">（平台平均收益率，格式：0.01）</span></label>
                        <div class="controls">
                            <input type="text"  class="text input-small" name="plat_interest" value="{$item['plat_interest']}">
                        </div>
                    </div>
                     <div class="form-item cf">
                        <label class="item-label">弹溜溜加息<span class="check-tips">（弹溜溜固定加息，格式：0.01）</span></label>
                        <div class="controls">
                            <input type="text"  class="text input-small" name="add_interest" value="{$item['add_interest']}">
                        </div>
                    </div>
                    <div class="form-item cf">
                        <label class="item-label">平台收益描述<span class="check-tips">（平台收益率范畴，例：18%~24%）</span></label>
                        <div class="controls">
                            <input type="text"  class="text input-small" name="plat_interest_desc" value="{$item['plat_interest_desc']}">
                        </div>
                    </div>
                    <div class="form-item cf">
                        <label class="item-label">体验要求<span class="check-tips">（多个体验要求用"|"隔开）</span></label>
                        <div class="controls">
                            <input type="text"  class="text input-large" name="exper_require_desc" value="{$item['exper_require_desc']}">
                        </div>
                    </div>
                </div>
                <div id="tab3" class="tab-pane tab3">
                     <div class="form-item cf">
                        <label class="item-label">最小体验额度<span class="check-tips">（可选，用户投资起始额度）</span></label>
                        <div class="controls">
                            <input type="text"  class="text input-small" name="min_require_amount" value="{$item['min_require_amount']}">
                        </div>
                    </div>
                     <div class="form-item cf">
                        <label class="item-label">最大体验额度<span class="check-tips">（可选，用户投资最大额度）</span></label>
                        <div class="controls">
                            <input type="text"  class="text input-small" name="max_require_amount" value="{$item['max_require_amount']}">
                        </div>
                    </div>
                    <div class="form-item cf">
                        <label class="item-label">体验额度描述<span class="check-tips">（可选，前台页面展示）</span></label>
                        <div class="controls">
                            <input type="text"  class="text input-large" name="require_amount_desc" value="{$item['require_amount_desc']}">
                        </div>
                    </div>
                </div>
                <div id="tab4" class="tab-pane tab4">
                     <div class="form-item cf">
                        <label class="item-label">最小体验期限<span class="check-tips">（可选，用户投资最小期限要求）</span></label>
                        <div class="controls">
                            <input type="text"  class="text input-small" name="min_require_period" value="{$item['min_require_period']}">
                        </div>
                    </div>
                    <div class="form-item cf">
                        <label class="item-label">最大体验期限<span class="check-tips">（可选，用户投资最大期限要求）</span></label>
                        <div class="controls">
                            <input type="text"  class="text input-small" name="max_require_period" value="{$item['max_require_period']}">
                        </div>
                    </div>
                    <div class="form-item">
                        <label class="item-label">体验期限单位</label>
                        <div class="controls">
                            <label class="radio"><input {if $item['require_period_type'] == 1} checked {/if} type="radio" name="require_period_type" value="1" />天</label>
                            <label class="radio"><input {if $item['require_period_type'] == 2} checked {/if} type="radio" name="require_period_type" value="2" />月</label>
                        </div>
                    </div>
                    <div class="form-item cf">
                        <label class="item-label">体验期限描述<span class="check-tips">（可选，前台页面展示）</span></label>
                        <div class="controls">
                            <input type="text"  class="text input-large" name="require_period_desc" value="{$item['require_period_desc']}">
                        </div>
                    </div>
                </div>
		<div id="tab5" class="tab-pane tab5">
                    <div class="form-item">
                            <label class="item-label">平台对比图<span class="check-tips">（详情页展示）</span></label>
                            <div class="controls">
                                    <input type="file" id="upload_picture_cover_id">
                                    <input type="hidden" name="pingtaiduibitu" id="cover_id_cover_id" value="{$item['pingtaiduibitu']}"/>
                                    <div class="upload-img-box"><!--{if ($item['pingtaiduibitu']!='')}--><div class="upload-pre-item"><img src="{$item['pingtaiduibitu']}"/></div><!--{/if}--></div>
                            </div>
                            <script type="text/javascript" src="{eval echo base_url()}static/uploadify/jquery.uploadify.min.js"></script>
                            <script type="text/javascript">
                            //上传图片
                            /* 初始化上传插件 */
                            $("#upload_picture_cover_id").uploadify({
                                    "height"          : 30,
                                    "swf"             : "{eval echo base_url()}static/uploadify/uploadify.swf",
                                    "fileObjName"     : "picture",
                                    "buttonText"      : "上传图片",
                                    "uploader"        : "http://static.tan66.com/upload/picture.html",
                                    //'formData' : {"action": "upload", "sid" : ""},
                                    "width"           : 120,
                                    'removeTimeout'	  : 1,
                                    'fileTypeExts'	  : '*.jpg; *.png; *.gif;',
                                    "onUploadSuccess" : uploadPicturecover_id,
                                    'onFallback' : function() {
                                            alert('未检测到兼容版本的Flash.');
                                    }
                            });
                            function uploadPicturecover_id(file, data){
                                    var data = $.parseJSON(data);
                                    var src = '';
                                    if(data.status){
                                            $("#cover_id_cover_id").val(data.id);
                                            src = data.url || '' + data.path
                                            $("#cover_id_cover_id").parent().find('.upload-img-box').html(
                                                    '<div class="upload-pre-item"><img src="' + src + '"/></div>'
                                            );

                                    } else {
                                            updateAlert(data.info);
                                            setTimeout(function(){
                                                    $('#top-alert').find('button').click();
                                                    //$(that).removeClass('disabled').prop('disabled',false);
                                            },1500);
                                    }
                            }
                            </script>
                    </div>
		</div>
		<div class="form-item cf">
                    <input type="hidden" name="plat_id" value="{$item['id']}"/>
                    <input type="hidden" name="plat_en" value="{$item['name_en']}"/>
                    <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
                    <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
		</div>
	</form>
	</div>
</div>
<!--F-->{load footer}
<script type="text/javascript">
showTab();
</script>